package com.aatrox.bhsypro.service.impl;

import com.aatrox.bhsypro.dao.UCollectDao;
import com.aatrox.bhsypro.entity.CollectVideo;
import com.aatrox.bhsypro.entity.UCollect;
import com.aatrox.bhsypro.service.UCollectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

@Service
public class UCollectServiceImpl implements UCollectService {
    @Autowired
    UCollectDao ucd;
    @Override
    public void createNewCollect(UCollect uc) {
        ucd.createNewCollect(uc);
    }

    @Override
    public List<UCollect> selAllCollectForUid(int uid) {
        List<UCollect> list = ucd.selAllCollectForUid(uid);
        return list;
    }

    @Override
    public List<CollectVideo> selCollectMsg(HashMap map) {
        List<CollectVideo> list =ucd.selCollectMsg(map);
        return list;
    }
}
